/*
 * @Descripttion:
 * @version:
 * @Author: 周子尧
 * @Date: 2021-01-27 11:21:27
 * @LastEditors: 周子尧
 * @LastEditTime: 2021-02-05 16:36:49
 */
import Vue from 'vue'

import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import store from './store'
import router from './router'
import '@/permission' // 路由拦截
// 挂载全局扩展(组件、图标、指令、方法、对象)
import '@/plugins'

/**
 * 打包后要是使用mock数据，执行下方代码，否则注释掉
 */
if (process.env.NODE_ENV === 'production') {
  const { mockXHR } = require('../mock')
  mockXHR()
}

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
